﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo01
{
    /// <summary>
    /// NPC类型
    /// </summary>
    enum NPCType
    {
        /// <summary>
        /// 任务NPC
        /// </summary>
            NpcTask,
        /// <summary>
        /// 商店NPC
        /// </summary>
            NpcShop,
        /// <summary>
        /// 铁匠NPC
        /// </summary>
            NpcIron,
    }


    abstract  class NPC
    {
        public string name { get; set; }
        public NPCType npctype { get; set; }
        public NPC()
        {

        }

        public NPC(string name,NPCType npctype)
        {
            this.name = name;
            this.npctype = npctype;
        }
        public abstract void Spaek();
    }
}
